
<script src='DvipdfmxEngine.js'></script>
<script>

var globalEn = new DvipdfmxEngine();
globalEn.loadEngine();

async function testTeX() {
	let texR = await fetch('test.xdv');
	let tex = await texR.arrayBuffer();
	globalEn.writeMemFSFile("main.xdv", tex);
	globalEn.setEngineMainFile("main.xdv");
	let r = await globalEn.compileLaTeX();
	
} 	
</script>
